<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>首页</title>
	<link rel="stylesheet" type="text/css" href="__STATIC__/pc/css/head.css">
	<link rel="stylesheet" type="text/css" href="__STATIC__/pc/css/setdiv.css">
	<link rel="stylesheet" type="text/css" href="__STATIC__/pc/css/setdiv.css">
	<link rel="stylesheet" type="text/css" href="__STATIC__/pc/css/bottom.css">
	<script type="text/javascript" src="__STATIC__/pc/js/index.js"></script>
	<script type="text/javascript" src="__STATIC__/pc/js/jquery-3.2.1.min.js"></script>
</head>
<style type="text/css">
	html{
		padding: 0;
		margin: 0;
		clear:both;
		font-family: sans-serif;
		width: 100%;
		overflow-x: hidden;
	}
	body{
		padding: 0;
		margin: 0;
	}
	.nav{
		width: 100%;
		background: #00B1D7;
		color: #fff;
		height: 812px;
		padding-top: 0;
		background-image: url(__STATIC__/uploads/{$banner.banner});
		background-position: center;
	}
	.search{
		width: 1000px;
		height: 215px;
		/*background: rgba(0,0,0,0.4);*/
		margin: 0 auto;
		padding-top: 145px;
		position: relative;
    	top: 130px;
	}
	.search2{
		width: 821px;
		height: 60px;
		border-radius: 30px;
		background: #fff;
		margin: 0 auto;
		display:flex;
		-webkit-display:flex;
		justify-content: space-between;
	}
	.search2 input{
		border-bottom-left-radius: 30px;
		border-top-left-radius: 30px;
		outline-style: none;
		width: 668px;
		border:0;
		font-size: 22px;
		padding-left: 30px;
		padding-right: 30px;
		border: 2px solid #f9bb30;
	}
	.search2 div{
		width: 150px;
		height: 60px;
		text-align: center;
		line-height: 60px;
		font-size: 22px;
		border-bottom-right-radius: 30px;
		border-top-right-radius: 30px;
		background: #f9bb30;
		color: #fff;
		cursor: pointer;
	}
	.eg1{
		width: 750px;
		margin: 0 auto;
		font-size: 14px;
		margin-top: 32px;
	}
	.eg{
		display:flex;
		-webkit-display:flex;
		justify-content: flex-start;
	}
	.eg div{
		margin-right: 69px;
		cursor: pointer;
	}
	.title1{
		text-align: center;
		margin-top: 60px;
		font-size: 30px;
		/*font-weight: bold;*/
		color: #585959;
		/*margin-bottom: 60px;*/
		margin-left: 100%;
		position: relative;
		z-index: 11;
	}
	.zhong{
		display: flex;
		-webkit-display:flex;
		flex-wrap:wrap;
		width: 821px;
		margin: 0 auto;
		position: relative;
		/*opacity: 0;*/
	}
	.zhong>div{
		width: 410px;
	}
	/*
	.zhong>div:hover{
		background: #ffad01;
		color: #fff;
		cursor: pointer;
	}
	.zhong>div:hover .zhong-desc{
		color: #fff;
	}
	*/
	.zhong>div:nth-child(2n){
		border-left: 1px solid #ddd;
	}
	.zhong>div:nth-child(1),.zhong>div:nth-child(2){
		border-bottom:  1px solid #ddd;
	}
	.zhong-list1,.zhong-list3{
		position: relative;
		right: 100%;
	}
	.zhong-list2,.zhong-list4{
		position: relative;
		left: 100%;
	}
	.zhong-list .img{
		width: 300px;
		height: 280px;
		background: #eee;
		margin: 0 auto;
		margin-top: 40px;
	}
	.zhong-title{
		text-align: center;
		font-weight: bold;
		margin-top: 16px;
	}
	.zhong-desc{
		text-align: center;
		width: 300px;
		margin: 0 auto;
		margin-top: 10px;
		line-height: 30px;
		font-size: 14px;
		color: #333;
		margin-bottom: 30px;
	}
	.new-title{
		text-align: center;
		color: #07A5C7;
		font-size: 26px;
		margin-bottom: 70px;
		opacity: 1;
		position: relative;
		top: 100px;
		opacity: 0;
		background-color: #ffad01

	}
	.new-title1{
		text-align: center;
		color: #07A5C7;
		font-size: 26px;
		margin-bottom: 70px;
	}
	.new-lists{
		display: flex;
		-webkit-display:flex;
		justify-content: center;
		color: #333;
		margin-bottom: 80px;
	}
	.new-lists div{
		margin-right: 60px;
		font-size: 16px;
		width: 109px;
		height: 39px;
		text-align: center;
		line-height: 39px;
	}
	/*
	.new-lists>div:hover{
		background: #02B4D7;
		color: #fff;
		cursor:pointer;
	}*/
	.new-content{
		display: flex;
		-webkit-display:flex;
		justify-content: center;
		padding-bottom: 53px;
		position: relative;
	}
	.new-img{
		width: 386px;
		height: 293px;
		background: #fff;
		position: relative;
	}
	.new-content-lists{
		display: table;
		height: 293px;
		margin-left: 66px;
		position: relative;
	}
	.new-content-lists>div{
		display: table-cell;
		vertical-align: middle;
	}
	.new-content-lists>div{
		font-size: 18px;
	}
	.new-content-lists i{
		width: 13px;
		height: 13px;
		background: #FF881E;
		display: inline-block;
		margin-right: 10px;
	}
	.new-content-lists span{
		color: #0ABDCB;
	}
	.new-content-lists-list{
		margin-top: 30px;
	}
	.qiyelist_top{
			text-align: center;
				width: 100%;
			    
			   
			
	}
	.inner{
				margin:0px auto;
			    border:0px;
			    padding:0px;
			    width: 1010px;  
			    overflow: hidden;
			}
	.qiyelist{
		position: relative;
		display: flex;
		justify-content: center;
		align-items: center;
		margin:10px auto;
		border:0px;	
	}

	.qiyelist>div{
		padding:0 50px;
	}
	.qi-div{
		width: 155px;
		text-align: center;
	}
	.qiyelist,.qiyelist1{float:left;}
	.zheng{
		width: 170px;
		height: 170px;
		/*border: 1px solid #eee;*/
		transform: rotate(45deg);
		display: inline-block;
		margin-right: 90px;
		opacity: 0;
		background-color: #ccc;
	}
	.zheng-li{
		width: 150px;
		height: 150px;
		background-color: #fff;
		margin-left: 10px;
		margin-top: 10px;
	}
	.zheng-li img{
		width: 90px;
		height: 90px;
		background-color: #fff;
		border-radius: 50%;
		transform: rotate(-45deg);
		margin-top: 30px;
	}
	.new-lists_1,.new-lists_2,.new-lists_3,.new-lists_4{
		opacity: 0;
	}
	.zixu{
		position: relative;
		bottom: 100px;
		opacity: 0;
		margin-left: 100%;
		transform:rotate(360deg);
	}
	.zixu1{
		animation:mymove 0.5s infinite forwards;
		animation-fill-mode:forwards;
		animation-iteration-count: 1;
	}
	@keyframes mymove
	{
	from {margin-left: 100%;transform:rotate(860deg);}
	to {margin-left: 0;transform:rotate(0deg);}
	}
	.xia{
		display: flex;
		-wekbit-display:flex;
		justify-content: center;
		position: relative;
		top: -10px;
	}
	.xia_line{
		width: 110px;
		height: 4px;
		background-color: #00b1d7;
		border-radius: 2px;
	}
	.xia_dian{
		width: 36px;
		height: 36px;
		border-radius: 18px;
		background-color: #ffad01;
		position: relative;
		top: -16px;
		margin-left: 3px;
		margin-right: 3px;
	}
	.zhongjian{
		width: 70px !important;
		height: 70px;
		border-radius: 50%;
		border: 1px solid #eee;
		position: absolute;
		left: calc(50% - 35px);
		top: 1335px;
		background-color: #fff;
		z-index: 2
	}
	.zhongjian_dian{
		width: 10px;
		height: 10px;
		border-radius: 5px;
		background-color: #ffad01;
		margin-top: 30px;
		margin-left: 30px;
	}
	.xia1{
		margin-right: 100%;
	}
	 .div-xuanfu{
                z-index: 999;
                /*position: relative;*/
                width: 50px;
                height:50px;
                border-radius: 25px;
                background-color: #F9BB30; 
                margin-top: 100px;
                color:#F9BB30;
                line-height:50px;
                text-align: center;
                 position:fixed; 
                 left:95%; 
                 top:100px;
            }
	
	.wrapimg {
	position:relative;
	overflow:hidden;
	font-family:arial, sans-serif;	
	top : 14%;
	width: 250px;
    height: 200px;
    background: #eee;
    margin: 0 auto; 
}	
.wrapimg a{
	display:block;
	width:252px;
	height:202px;
	text-decoration:none;
	color:#000;
}
.wrapimg img {
	border:0;
}
.wrapimg p{
	display:block;
	width:252px;
	height:202px;
	position:absolute;
	left:0;
	top:200px;
	z-index:1;
	background:rgba(0,0,0,.5);
	font-size:12px;
	color:#fff;
	padding-top: 30px;
	margin: auto;
	line-height:16px;
	-webkit-transition: all 0.6s ease-in-out;
	text-align: center;
}
.wrapimg p b {
	display:block;
	font-size:22px;
	color:#fc0;
	text-align:center;
	margin:0;
	padding:0;
	line-height:30px;
}
.wrapimg p span {
	display:block;
	padding:10px;
	line-height:20px;
	/*color : black;*/
}
.wrapimg a:hover {
	direction:ltr;
	opacity : 1.5;
}
.wrapimg a:hover p {
	top:0;
}
			
</style>
<body>
	<include file="Public:nav" />
	<div class="nav">
		<form action="{:url('Company/index')}">
		<div class="search">
			<div class="search2">
				<input type="text" name="company_name" placeholder="搜索企业名" value="">
				<div onclick="project_submit()">搜索</div>
			</div></form>
			<div class="eg1">
				<div class="eg">
					<volist name="hot_search" id="vo">
						<a style="color:white" href="{:url('company/index',array('company_name'=>$vo.search_name))}"><div>{$vo.search_name}</div></a>
					</volist>
				</div>
			</div>
		</div>
	</div>
	</div>
	
	<!--标记 -->
	
	
	<div class="title1">服务项目</div>
	<span class="title1_bottom" style="position: relative;left: calc(50% - 90px);top: -52px; color: #cbeaf4;font-size: 30px;opacity: 0;">NOTICE</span>
	<div class="xia xia1">
		<div class="xia_line"></div>
		<div class="xia_dian"></div>
		<div class="xia_line"></div>
	</div>
	<if condition="!empty($service[0])">
	<div class="zhongjian">
		<div class="zhongjian_dian"></div>
	</div>
	</if>
	<div class="zhong">
		<volist name="service" id="vo" key="k">
			<div class="zhong-list zhong-list{$k}" style="height:280px">
				<!-- img-->
				<div class="wrapimg">
				<!-- width="252" height="202"  style="width:252px;height:202px;"-->
				<a href="{$vo.link}">
					<img src="__STATIC__/uploads/{$vo.picture}"  style="width:100%;height:100%;">
					<if $k == 1>
					<p> 
						<b>资质认定</b> 
						<span>高企资质认定<br />
						<br />
						平台资质认定<br />
						<br />
						产品资质认定<br />	
						</span> 
					</p>
					</if>
					<if $k== 2>
					<p> 
						<b>资金申报</b> 
						<span>研发补助专题<br />
						<br />
						科技计划专题<br />
						<br />
						创新创业专题<br />	
						</span> 
					</p>
					</if>
					<if $k== 3>
					<p> 
						<b>体系建设</b> 
						<span>研发体系建设<br />
						<br />
						财务体系建设<br />
						<br />
						人才体系建设<br />	
						</span> 
					</p>
					</if>
					<if $k== 4>
					<p> 
						<b>资讯服务</b> 
						<span>优惠侦测资讯<br />
						<br />
						企业立项资讯<br />
						<br />
						资源对接资讯<br />	
						</span> 
					</p>
					</if>
					
				</a>
				</div>
				
				
				<!-- <div class="zhong-title" style="color:#000000;">{$vo.title}</div>
				<div class="zhong-desc">{$vo.department}<br/>查看详情…</div> -->
				
			</div>
		</volist>
	</div>
	<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=2148366191&site=qq&menu=yes">
	<div id="xuanfu" class="div-xuanfu"><img src="__STATIC__/pc/img/QQ.png" style="width: 50px;height:50px;"></div>
	</a>  
	<div class="new">
		<div class="new-title" style="height: 90px;margin-top: 40px;">
			<div style="color: #595A5A;font-size: 30px;position: relative;top: 12px;">查询</div>
			<div style="color: #d5a666;font-size: 24px;position: relative;top: 10px;">NOTICE</div>
		</div>
		<div class="xia" style="top: -30px;">
			<div class="xia_line"></div>
			<div class="xia_dian"></div>
			<div class="xia_line"></div>
		</div>
		<div class="new-lists">
			<div class="dynamic" style="background-color: #00B1D7;color: white;">最新动态</div>
			<div class="dynamic">公示公告</div>
			<div class="dynamic">通知公告</div>
			<div class="dynamic">政策文件</div>
		</div>
		<div>
			<div class="new-content">
				<div class="new-img">
					<img src="<if condition="!empty($dynamicList[0]['picture']) && isset($dynamicList[0]['picture'])">__STATIC__/uploads/{$dynamicList[0]['picture']}<else />__STATIC__/pc/img/left.png</if>" width="386" height="293">
				</div>
				<div class="new-content-lists">
					<div>
						<if condition="!empty($dynamicList)">
						<volist name="dynamicList" id="vo">
							<div class="new-content-lists-list"><i></i><a href="{:url('dynamic/detail',array('id'=>$vo.id))}" style="text-decoration: none;color: #000;font-size: 14px ;"><span>【{$vo.department}】</span>{$vo.title}</a></div>
						</volist>
						</if>
					</div>
				</div>
				<div class="more"><a href="{:url('dynamic/index')}" style="position: absolute;bottom: 20px;right: 20%;color: #07A5C7;">更多>></a></div>
			</div>
			<div class="new-content" style="display: none;">
				<div class="new-img">
					<img src="<if condition="!empty($dynamicList[0]['picture']) && isset($dynamicList[0]['picture'])">__STATIC__/uploads/{$dynamicList[0]['picture']}<else />__STATIC__/pc/img/left.png</if>" width="386" height="293">
				</div>
				<div class="new-content-lists">
					<div>
						<volist name="publicityList" id="vo">
							<div class="new-content-lists-list"><i></i><a a_href="{:url('Publicity/detail_continue')}" onclick="return_publicity(this)" id="{$vo.id}" href="javascript:void(0)" style="text-decoration: none;color: #000;font-size: 12px"><span>【{$vo.department}】</span>{$vo.title}</a></div>
						</volist>
					</div>
				</div>
				<div class="more"><a href="{:url('publicity/index')}" style="position: absolute;bottom: 20px;right: 20%;color: #07A5C7;">更多>></a></div>
			</div>
			<div class="new-content" style="display: none;">
				<div class="new-img">
					<img src="<if condition="!empty($dynamicList[0]['picture']) && isset($dynamicList[0]['picture'])">__STATIC__/uploads/{$dynamicList[0]['picture']}<else />__STATIC__/pc/img/left.png</if>" width="386" height="293">
				</div>
				<div class="new-content-lists">
					<div>
						<volist name="noticeList" id="vo">
							<div class="new-content-lists-list"><i></i><a a_href="{:url('notice/detail_continue')}" href="javascript:void(0)" onclick="return_notice(this)" id="{$vo.id}" style="text-decoration: none;color: #000;font-size: 12px"><span>【{$vo.department}】</span>{$vo.title}</a></div>
						</volist>
					</div>
				</div>
				<div class="more"><a href="{:url('notice/notice_list')}" style="position: absolute;bottom: 20px;right: 20%;color: #07A5C7;">更多>></a></div>
			</div>
			<div class="new-content" style="display: none;">
				<div class="new-img">
					<img src="<if condition="!empty($dynamicList[0]['picture']) && isset($dynamicList[0]['picture'])">__STATIC__/uploads/{$dynamicList[0]['picture']}<else />__STATIC__/pc/img/left.png</if>" width="386" height="293">
				</div>
				<div class="new-content-lists">
					<div>
						<volist name="policyList" id="vo">
							<div class="new-content-lists-list"><i></i><a a_href="{:url('Policy/detail_continue')}" onclick="return_policy(this)" href="javascript:void(0)" id="{$vo.id}" style="text-decoration: none;color: #000;font-size: 12px"><span>【{$vo.department}】</span>{$vo.title}</a></div>
						</volist>
					</div>
				</div>
				<div class="more"><a href="{:url('policy/index')}" style="position: absolute;bottom: 20px;right: 20%;color: #07A5C7;">更多>></a></div>
			</div>
		</div>
	</div>
	<div class="zixu">
		<div class="new-title1" style="margin-bottom: 0;margin-top: 26px;color: #5E5E5E;">入驻平台</div>
		<div style="color: #cbeaf4;font-size: 24px;text-align: center;color: #d1d1e5;">NOTICE</div>
		<div class="xia" style="top: 20px;margin-bottom: 20px;">
			<div class="xia_line"></div>
			<div class="xia_dian"></div>
			<div class="xia_line"></div>
		</div>
	</div>
	<div style="text-align: center;padding-top: 100px;padding-bottom: 90px;background-image: url(__STATIC__/pc/img/bg.png);background-position: center;">
		<div>
			<if condition="!empty($company[0])">
			<span class="zheng zheng1">
				<a href="http://{$company[0]['link']}">
				<div class="zheng-li">
					<img src="__STATIC__/uploads/{$company[0]['picture']}">
				</div>
				</a>
			</span>
			<else/>
			<span class="zheng zheng1">
				<div class="zheng-li">
					<img>
				</div>
			</span>
			</if>
			<if condition="!empty($company[1])">
			<span class="zheng zheng2">
				<a href="http://{$company[1]['link']}">
				<div class="zheng-li">
					<img src="__STATIC__/uploads/{$company[1]['picture']}">
				</div>
				</a>
			</span>
			<else/>
			<span class="zheng zheng2">
				<div class="zheng-li">
					<img>
				</div>
			</span>
			</if>
			<if condition="!empty($company[2])">
			<span class="zheng zheng3">
				<a href="http://{$company[2]['link']}">
				<div class="zheng-li">
					<img src="__STATIC__/uploads/{$company[2]['picture']}">
				</div>
				</a>
			</span>
			<else/>
			<span class="zheng zheng3">
				<div class="zheng-li">
					<img>
				</div>
			</span>
			</if>
			<if condition="!empty($company[3])">
			<span class="zheng zheng4" style="margin-right: 0;">
				<a href="http://{$company[3]['link']}">
				<div class="zheng-li">
					<img src="__STATIC__/uploads/{$company[3]['picture']}">
				</div>
				</a>
			</span>
			<else/>
			<span class="zheng zheng4" style="margin-right: 0;">
				<div class="zheng-li">
					<img>
				</div>
			</span>
			</if>
		</div>
		<div>
			<if condition="!empty($company[4])">
			<span class="zheng zheng5">
				<a href="http://{$company[4]['link']}">
				<div class="zheng-li">
					<img src="__STATIC__/uploads/{$company[4]['picture']}">
				</div>
				</a>
			</span>
			<else/>
			<span class="zheng zheng5">
				<div class="zheng-li">
					<img>
				</div>
			</span>
			</if>
			<if condition="!empty($company[5])">
			<span class="zheng zheng6">
				<a href="http://{$company[5]['link']}">
				<div class="zheng-li">
					<img src="__STATIC__/uploads/{$company[5]['picture']}">
				</div>
				</a>
			</span>
			<else/>
			<span class="zheng zheng6">
				<div class="zheng-li">
					<img>
				</div>
			</span>
			</if>
			<if condition="!empty($company[6])">
			<span class="zheng zheng7" style="margin-right: 0;">
				<a href="http://{$company[6]['link']}">
				<div class="zheng-li">
					<img src="__STATIC__/uploads/{$company[6]['picture']}">
				</div>
				</a>
			</span>
			<else/>
			<span class="zheng zheng7" style="margin-right: 0;">
				<div class="zheng-li">
					<img>
				</div>
			</span>
			</if>
		</div>
	</div>
	<div style="background-color: #f8f8f8;padding-bottom: 100px;padding-top: 50px;">
		<div style="margin-bottom: 80px;margin-left: 100%;"  class="ruzhu">
			<div class="new-title1" style="margin-bottom: 0;margin-top: 26px;color: #5E5E5E;">平台资源</div>
			<div style="color: #cbeaf4;font-size: 24px;text-align: center;color: #d1d1e5;">NOTICE</div>
			<div class="xia" style="top: 20px;">
				<div class="xia_line"></div>
				<div class="xia_dian"></div>
				<div class="xia_line"></div>
			</div>

		</div>
		<div class="qiyelist_top" id="qiyelist_top">
			<div class="inner">
				<div class="qiyelist" >
					<volist name="join_company" id="vo" key="k">
					<!-- 
					style="width: 135px;text-align: center;<if condition="$k==4">margin-right: 0px;</if>"
					-->
					<div class="qi-div">
						<a href="http://{$vo.link}">
						<div>
						<!--
						<img src="__STATIC__/uploads/img/jrhy.png"  style="width: 155px;">
						<img src="__STATIC__/uploads/{$vo.picture}" style="width: 155px;">
						-->
						<img src="__STATIC__/uploads/{$vo.picture}" style="width: 155px;">
						
						</div>
						<div style="font-size: 10px;color: #02A0C2;">{$vo.title}</div>
						</a>
					</div>
					</volist>
				</div>
				<!-- 
				<div class="qiyelist" id="qiyelist1"></div>
				-->
			</div>
		</div>
	</div>
	<div style="height:60px"></div>
	<include file="Public:footer" />
</body>
<script src="__STATIC__/admin/js/jquery.js"></script>
<script>
function project_submit(){
	$('form').submit();
}
 start();
	var timer 
	function start(){
				timer = setInterval(function(){
			     Toleft();    
			       
			   },3000)  
			}
var size = $(".qiyelist .qi-div").size()+1;
console.log("第一个size",size);
var imgWidth = $(".qiyelist div:first-child").width()+100;
console.log("imgw",imgWidth);
var clone = $(".qiyelist").find('.qi-div').clone();
$(".qiyelist").append(clone);
  
var i = 0;
function Toleft(){
     i++;
     if(i==size){
        $(".qiyelist").css({left:0});
        i = 1;     
     }
     $(".qiyelist").stop().animate({left:-i*imgWidth},1000);
    
   }
	function stopleft(){
		clearInterval(timer);
	}
$(".qi-div").mouseover(function(){
	stopleft();
	
})
$(".qi-div").mouseout(function(){
	start();
	
})
/*
//入驻企业滚动
function getid(id){
	return document.getElementById(id);
}
 
var speed = 1500;
var qiyelist_top = getid("qiyelist_top");
var qiyelist = getid("qiyelist");
var qiyelist1 = getid("qiyelist1");
console.log(qiyelist1);
qiyelist1.innerHTML = qiyelist.innerHTML;
function scroll(){
	if(qiyelist1.offsetWidth - qiyelist_top.scrollLeft <=0){
		console.log(qiyelist_top.scrollLeft = 0);
	}else{
		console.log(qiyelist_top.scrollLeft+=265);
	}
}
myscroll = setInterval(scroll,speed);
qiyelist_top.onmouseout = function(){
	myscroll = setInterval(scroll,speed);
}
qiyelist_top.onmouseover = function(){
		clearInterval(myscroll);
	
};
*/
//悬浮质询
 $(function(){
  $("#xuanfu").mouseover(function(){
   $(this).animate({width:"100px",left:'93%'},500);
  }).mouseout(function(){
   $(this).animate({width:"50px",left:'95%'},500);
  });
 });


//检测是否有权限
function return_publicity(obj){
        var a_href = $(obj).attr('a_href');
        var id = $(obj).attr('id');

        var formData = new FormData();
        formData.append('id',id);

        $.ajax({
            url:a_href,
            type:'POST',
            data:formData,
            async:false,
            processData:false,
            contentType:false,
            success:function(result){
                if(result.code == 0){
                    layer.alert(result.msg);
                    return false;
                }

                location.href=result.url;
            }

        });
}

//检测是否有权限
function return_notice(obj){
    var a_href = $(obj).attr('a_href');
    var id = $(obj).attr('id');

    var formData = new FormData();
    formData.append('id',id);

    $.ajax({
        url:a_href,
        type:'POST',
        data:formData,
        async:false,
        processData:false,
        contentType:false,
        success:function(result){
            if(result.code == 0){
                layer.alert(result.msg);
                return false;
            }

            location.href=result.url;
        }

    });
}

//检测是否有权限
function return_policy(obj){
    var a_href = $(obj).attr('a_href');
    var id = $(obj).attr('id');

    var formData = new FormData();
    formData.append('id',id);

    $.ajax({
        url:a_href,
        type:'POST',
        data:formData,
        async:false,
        processData:false,
        contentType:false,
        success:function(result){
            if(result.code == 0){
                layer.alert(result.msg);
                return false;
            }

            location.href=result.url;
        }

    });
}
$(".dynamic").mouseover(function(){
	$(this).attr("style","background-color: #00B1D7;color: white;").siblings().removeAttr("style");
	$(this).parent().next().children().eq($(this).index()).removeAttr("style").siblings().attr("style","display:none;");
});
</script>
</html>
